from PIL import Image
import os
import pickle,glob
import binascii
import struct


filePath = './'
file=os.listdir(filePath)
print(file[0])
# 文件夹名 按数字排序
#file.sort(key=lambda x: int(x[5:]))
#print(file)
#file.sort(key=lambda x: int(x.split("_")[1][:-4]))

print(file)





bin_name ='./font.bin'  #生成的bin文件

   #写入数据到Bin文件内
#binfile= open(bin_name,'wb+')
file_merage = open(bin_name,'wb+')
for i in range(0,4):
    file_1 = open(file[i],'rb')
    data = file_1.read()
    file_merage.write(data)
    file_1.close()
file_merage.close()

